import Request from "./request";
const baseURL = "https://vvv.52ecode.cn/api";
const timeout = 10000;
const request = new Request(
  {
    baseURL: baseURL,
    timeout: timeout,
  },
  {
    requestInterceptor(config) {
      if (config.data) {
        config.data.website_id = 1;
      } else {
        config.data = {
          website_id: 1,
        };
      }
      return config;
    },
  }
);

export default request;
